﻿<%@ Control Language="C#" Inherits="System.Web.Mvc.ViewUserControl" %>
<div class="commonbox">
        <div class="headerbox">
              <table style="width: 100%;">
                <tr style="text-align: center">
                    <td style="width: 22px; height:22px;">
                        <a href="javascript:history.back()"><img alt="&lt;&lt;" src="/Content/imgs/back.png" style="border: 0px;" /></a>
                    </td>
                    <td>
                        <%= Model.ToString() %>    
                    </td>
                    <% 
                        Int32? UserID = Wild2.Models.Auth.AuthOnSite.GetUserId();
                        if(UserID.HasValue) 
                        {
                            %>
                            <td style="width: 22px; height:22px;">
                            <%
                            if (Wild2.Models.Notifies.Notifies.GetCountNewNotifies(UserID.Value) > 0)
                            {
                                %>
                                <a href="<%= Url.Action("Index", "Notifies") %>">
                                    <img alt="[M]" src="/Content/imgs/bell.png" style="border: 0px;" />
                                </a>
                                <%
                            }
                            else
                            {
                                %>
                                 <a href="<%= Url.Action("Index", "Notifies") %>">
                                    <img alt="[M]" src="/Content/imgs/bell2.png" style="border: 0px;" />
                                </a>
                                <%
                            } %>
                            </td>
                            <%
                        }
                         %>
                </tr>
            </table>
        </div>
</div>
